import request from '@/utils/request'

// 查询公告列表
export function listOrderTest(query) {
  return request({
    url: '/system/order/test/list',
    method: 'get',
    params: query
  })
}
// 查询s
export function listTests(fId) {
  return request({
    url: '/system/list/result/num/'+fId,
    method: 'get'
  })
}
// 查询公告详细
export function getOrderTest(query) {
  return request({
    url: '/system/order/test',
    method: 'get',
    params: query
  })
}
// 质检查询公告详细
export function listTestResult(query) {
  return request({
    url: '/system/test/result/list',
    method: 'get',
    params: query
  })
}
//波形任务查看
export function listTestResulst(query) {
  return request({
    url: '/system/list/result/entryList',
    method: 'get',
    params: query
  })
}
//波形任务查看
export function listTestResultw(query) {
  return request({
    url: '/system/test/result/list',
    method: 'get',
    params: query
  })
}

// 新增公告
export function addOrderTest(data) {
  return request({
    url: '/system/order/test',
    method: 'post',
    data: data
  })
}

// 修改公告
export function updateOrderTest(data) {
  return request({
    url: '/system/order/test',
    method: 'put',
    data: data
  })
}

// 删除公告
export function delOrderTest(orderTestId) {
  return request({
    url: '/system/order/test/' + orderTestId,
    method: 'delete'
  })
}
export function contrastResult(data) {
  return request({
    url: '/system/contrast/result',
    method: 'post',
    data: data
  })
}
export function contrastResultPut(data) {
  return request({
    url: '/system/contrast/result',
    method: 'put',
    data: data
  })
}
export function addBad(data) {
  return request({
    url: '/system/test/result/addBad',
    method: 'post',
    data: data
  })
}
export function statequality(data) {
  return request({
    url: '/system/process',
    method: 'post',
    data: data
  })
}
export function testConfirm(data) {
  return request({
    url: '/system/order/test/confirm',
    method: 'post',
    data: data
  })
}


